{include file="public/header" /}
<style>
    video{
        width: 350px;!important;
        height: 150px;!important;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>帖子详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8 form-group">
                            <label class="layui-form-label">内容：</label>
                            <div class="layui-input-block">
                                <textarea style="width: 625px;height:60px;" disabled>{$detail.h_content}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">类别：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.type_name}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">引言：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_yinyan}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发帖地址：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_address}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发帖用户：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.user_username}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">评论数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_message}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">赞数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_yes}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">踩数：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_no}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">类型：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_cate == 1 ? '图文' : '视频'}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否推荐：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_top == 1 ? '没有推荐' : '已推荐'}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">状态：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_status == 1 ? '正常' : '已下架'}" disabled>
                            </div>
                        </div>
                        {if $detail.h_cate == 1}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">图片：</label>
                                {if(!empty($detail.h_image))}
                                <div class="layui-input-block aaaaaa">
                                    {volist name='detail.h_image' id='vo'}
                                    <img height="80" width="80" style="float:left;margin-top:5px;cursor:pointer;margin-right: 20px;" src="{$vo}" />
                                    {/volist}
                                </div>
                                {else /}
                                暂无图片
                                {/if}
                            </div>
                        </div>
                        {else /}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="form-group">
                                <label class="layui-form-label">视频：</label>
                                {if(!empty($detail.h_image))}
                                <div class="layui-input-block">
                                    <video controls src="{$detail.h_image}"></video>
                                </div>
                                {else /}
                                暂无视频
                                {/if}
                            </div>
                        </div>
                        {/if}
                        <!--<br/>-->
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发帖时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_time}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">最后操作时间：</label>
                            <div class="layui-input-block">
                                <input type="text" class="layui-input" value="{$detail.h_update_time}" disabled>
                            </div>
                        </div>
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
</body>
</html>
<script type="text/javascript">
    $('.aaaaaa').viewer({
        url: 'data-original',
    });
</script>